package com.ruoyi.common.utils;

import java.util.ArrayList;
import java.util.List;

import com.ruoyi.common.core.redis.RedisInfo;

/**
 * 项目参数
 * @author liuz
 */
public class ProjectConstant {

	/**
	 *  消息通知存入redis标识
	 */
	public static final String REDIS_MSG_PREFIX = "unread_msg_record";
	
	/**
	 * 	声网配置
	 */
	public static final String APP_ID = "b2c22074eb6e4bda8ccaf8fc04fd9eed";
	public static final String CERTIFICATE = "05e19d631b6441099d8f3fee9cc0c8a4";
	public static final String RTC_CHANNEL_EVENT_CALLBACKS_SECRET = "6S5KeXHUZ";
	
	/**
	 * 	融云配置
	 */
	public static final String RONG_CLOUD_APP_KEY = "k51hidwqkxavb";
	public static final String RONG_CLOUD_APP_SECRET = "AuUwnMit0FN8";
	public static final String RONG_CLOUD_SERVER_API_URL1 = "api.rong-api.com";
	public static final String RONG_CLOUD_SERVER_API_URL2 = "api-b.rong-api.com";
	public static final String RONG_CLOUD_GET_USER_TOKEN = "https://api.rong-api.com/user/getToken.json";
	public static final String RONG_CLOUD_DELETE_ROOM = "https://api.rong-api.com/v2/rtc/rooms/";
	public static final String RONG_CLOUD_REDIS_KEY = "rong:token:";
	
	/**
	 * 	网易云盾 一键登录配置
	 */
	public static final String NETEASE_SECRET_ID = "6b8b97624883209bb9f49e6f2152c38f";
	public static final String NETEASE_SECRET_KEY = "f5a7a75207498ed8c03ffb6935e1d3d1";
	public static final String NETEASE_BUSINESS_ID = "c571f11aaf4d423aab621cc7a885732e";
	
	
	/**
	 * 	阿里云配置
	 */
	public static final String ACCESSKEY_ID = "LTAI5t8vauBi4WQ8fZUq4MsT";
	public static final String ACCESSKEY_SECRET = "D2x0wcd5I5Ms5Z36imPSVS2hQ6jK37";
	public static final String REGION_ID = "oss-cn-shenzhen";
	public static final String SIGN_NAME = "蜜搭";
	public static final String TEMPLATE_NAME = "SMS_294040618";
	public static final String BIZ_TYPE = "蜜搭";

	/**
	 * 	短信redis前缀
	 */
	public static final String MOBILE_CODE = "MOBILE_CODE";
	public static final long SMS_EXPIRE = 300;


	/**
	 * 	默认头像
	 */
	public static final String HEAD_PIC = "https://consultation1209.oss-cn-shenzhen.aliyuncs.com/logo/logo.jpg";

	/**
	 * Token验证接口
	 */
	public static final String USER_PREFIX = "/api/v1/user/";
	public static final String ORDER_PREFIX = "/api/v1/order/";
	public static final String SYSTEM_PREFIX = "/api/v1/system/";
	public static List<String> TOKEN_URL_LIST = new ArrayList<String>();


	/**
	 * 	用户VIP前缀
	 */
	public static final String USER_VIP_PREFIX = "user_vip:";

	/**
	 * 	OSS前缀
	 */
	public static final String OSS_PREFIX = "http://oss.ruanjiangc.com";

	/**
	 * 	支付业务类型
	 */
	public static final Integer BUY_VIP = 1;

	/**
	 * 	通用状态，有效
	 */
	public static final int COMMON_STATUS_AVAILABLE = 1;
	
	public static final int COMMON_STATUS_NOT_AVAILABLE = 0;
	
	/**
	 * 	非对称加密 私钥 和 公钥
	 */
	public static final String PRIVATEKEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOy9wywRS3p8VzKLJb1+oXYXXJVhcRWf0M+bm9Z26i5M2lfXRLh/UI+EwSJPBXCnSNfZhsFkkWug+wzkIoVupIrt65Y/LuedMXTV9g4CWTj42oK7Z3/uZTfTVenZ2imw5lUEvpSe9lXGB5G+6vhnU7TNZMdcjNSs/+6zx+wqofZtAgMBAAECgYEAvokz7eG1h81POMS5CTxDoxHGWAvmweqwWob487EdZUpBaPU+v+bn5bqI3p4O2M4qWF8gj8HrMF6N76AlEJMuJX45gyW5Zj4P9q4vgToS82WRepjSFBfLdytEqJz+c08mhnkkmsfnHJ1cIWw6/RsaTobeyHkIAkcjyMqP+yhGfsECQQD+wkkOruHhX+8URV0njSQ/SEvrF7KWU8TUut2Ut0d+k468qbjEJSCobFzHSSiUG4L3WvKCvGGMIDLRCL9PhKzZAkEA7eUBwEuf7irIlAI2U5lCGiQMu50EHGbp635dWABV07r9VzgQ636DDM9KUhuqbIh49meQfuqh8G+thw060C0ptQJBANQPs7KmPl5VdfTAvIdExKxsqM1b34uk1U5i8jltyvSBLaq7+JJFeYbZFO3KZx3KPN1b9kx/NQ/oaYR5LI6rmRkCQEnJGOTyz9UIMhQuJ3mAdI81FTnvtoG0reMb24na+MPmIIO34Q+Zur3zYWLcL9zf61zJvHiQ/89aZCEaSl6dU20CQCwjr5c4HZANsZO7BHXPnEaK4/hR7yX4eJBEIQQMz85gsgC+JQWAGQmHQGo/MNduRrXkWPKEdKtmFiV+trGV/sg=";
	
	public static final String PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDsvcMsEUt6fFcyiyW9fqF2F1yVYXEVn9DPm5vWduouTNpX10S4f1CPhMEiTwVwp0jX2YbBZJFroPsM5CKFbqSK7euWPy7nnTF01fYOAlk4+NqCu2d/7mU301Xp2dopsOZVBL6UnvZVxgeRvur4Z1O0zWTHXIzUrP/us8fsKqH2bQIDAQAB";
	
	
    public static final class RedisKey {
        public static final RedisInfo CITY_LIST = new RedisInfo().setKeyPrefix("CITY_LIST").setName("城市列表").setHour(1);
        public static final RedisInfo LOGIN_USER = new RedisInfo().setKeyPrefix("LOGIN_USER").setName("登录信息").setDay(10);
        public static final RedisInfo MOBILE_CODE = new RedisInfo().setKeyPrefix("MOBILE_CODE").setName("手机验证码").setHour(1);
        public static final RedisInfo INDUSTRY_LIST = new RedisInfo().setKeyPrefix("INDUSTRY_LIST").setName("行业列表").setHour(1);
        public static final RedisInfo REGION_LIST = new RedisInfo().setKeyPrefix("REGION_LIST").setName("区域列表").setHour(1);
        public static final RedisInfo INTEREST_LIST = new RedisInfo().setKeyPrefix("INTEREST_LIST").setName("兴趣列表").setDay(365);
        public static final RedisInfo TOPIC_LIST = new RedisInfo().setKeyPrefix("INTEREST_LIST").setName("主题列表").setDay(7);
        public static final RedisInfo PERSON_HEIGHT = new RedisInfo().setKeyPrefix("PERSON_HEIGHT").setName("身高").setHour(1);
        public static final RedisInfo PERSON_WEIGHT = new RedisInfo().setKeyPrefix("PERSON_WEIGHT").setName("体重").setHour(1);
        public static final RedisInfo DATING_SHOW = new RedisInfo().setKeyPrefix("DATING_SHOW").setName("交友节目").setHour(1);
        public static final RedisInfo EXPECT_PARTNER = new RedisInfo().setKeyPrefix("EXPECT_PARTNER").setName("期望对象").setHour(1);
        public static final RedisInfo BANNER_LIST = new RedisInfo().setKeyPrefix("BANNER_LIST").setName("banner列表").setHour(1);
        public static final RedisInfo PAY_TYPE = new RedisInfo().setKeyPrefix("PAY_TYPE").setName("支付类型").setDay(10);
        public static final RedisInfo USER_INFO = new RedisInfo().setKeyPrefix("USER_INFO_").setName("用户信息").setMinute(1);
        public static final RedisInfo MESSAGE_ALERT = new RedisInfo().setKeyPrefix("MESSAGE_ALERT_").setName("消息提醒").setDay(10);
        public static final RedisInfo RED_ENVELOPE_AVAILABLE = new RedisInfo().setKeyPrefix("RED_ENVELOPE_AVAILABLE").setName("待抢红包队列").setDay(100);
        public static final RedisInfo RED_ENVELOPE_DISABLE = new RedisInfo().setKeyPrefix("RED_ENVELOPE_DISABLE").setName("已抢红包队列").setDay(100);
        public static final RedisInfo VIP_EXPIRE = new RedisInfo().setKeyPrefix("VIP_EXPIRE").setName("VIP过期时间");
        public static final RedisInfo ORDER_REFUND = new RedisInfo().setKeyPrefix("ORDER_REFUND").setName("订单退款");
        public static final RedisInfo CONSTELLATION = new RedisInfo().setKeyPrefix("CONSTELLATION").setName("星座").setHour(1);
    }
    
    public class FileModule {
        public static final String PHOTO = "photo";
        public static final String REALAUTH = "realAuth";//认证过后的图片 用于校验相册上传图片是否真人
    }
    
    public static final class BusinessType {
    	/**
    	 	1：充值VIP
			2：发布技能
			3：赠送礼物
			4：购买道具
			5：发布悬赏
			6：充值玩币
			7: 兑换金币
    	 */
        public static final Integer VIP = 1;
        public static final Integer GIFT = 3;
        public static final Integer PROP = 4;
        public static final Integer REWARD = 5;
        public static final Integer CURRENCY = 6;
        public static final Integer EXCHANGEPLAY = 7; // 互动奖励兑换钻石
        public static final Integer EXCHANGEPLAYINVITE = 14; // 邀请好友兑换钻石
        public static final Integer EXPERIENCECARD = 8;
    }
    
    /**
     * 	平台常量
     * @author DEREK
     *
     */
    public static final class platformConstant{
    	// 解锁微信次数
    	public static final String UNLOCKWECHATCOUNT = "unlockWechatCount";
    	// 解锁聊天次数
    	public static final String UNLOCKCHATCOUNT = "unlockChatCount";
    	// 解锁微信价格
    	public static final String UNLOCKWECHATPRICE = "unlockWechatPrice";
    	// 解锁聊天价格
    	public static final String UNLOCKCHATPRICE = "unlockChatPrice";
    }
    
    
    public static List<String> maleList = new ArrayList<String>();
    public static List<String> femaleList = new ArrayList<String>();
}

